# -*- coding: utf-8 -*-
from datetime import datetime

from odoo import api, fields, models
from odoo.tools.float_utils import float_compare, float_round
from odoo.tools.translate import _
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo.exceptions import UserError

import logging

_logger = logging.getLogger(__name__)


class product_product(models.Model):
    _inherit = "product.product"

    inout_line_ids = fields.One2many('stock.inout.line', 'product_id', string=u'进销存明细')


class product_template(models.Model):
    _inherit = "product.template"
    inout_line_ids = fields.One2many('stock.inout.line', 'product_tmpl_id', string=u'进销存明细')
